package com.stylefeng.guns.modular.system.model;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 户型信息表
 * </p>
 *
 * @author leequn
 * @since 2018-08-02
 */
@TableName("tb_house_type")
public class HouseType extends Model<HouseType> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 户型名称
     */
    @TableField("house_name")
    private String houseName;
    /**
     * 户型介绍
     */
    @TableField("house_desc")
    private String houseDesc;
    /**
     * 建筑面积
     */
    private Double area;
    /**
     * 价格
     */
    private Double price;
    /**
     * 户型图片
     */
    @TableField("house_img")
    private String houseImg;
    /**
     * 楼栋号
     */
    @TableField("building_id")
    private Integer buildingId;
    /**
     * 父级户型
     */
    @TableField("parent_id")
    private Integer parentId;
    /**
     * 状态
     */
    private Integer stu;
    /**
     * 认购客户
     */
    @TableField("user_id")
    private Integer userId;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getHouseName() {
        return houseName;
    }

    public void setHouseName(String houseName) {
        this.houseName = houseName;
    }

    public String getHouseDesc() {
        return houseDesc;
    }

    public void setHouseDesc(String houseDesc) {
        this.houseDesc = houseDesc;
    }

    public Double getArea() {
        return area;
    }

    public void setArea(Double area) {
        this.area = area;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public String getHouseImg() {
        return houseImg;
    }

    public void setHouseImg(String houseImg) {
        this.houseImg = houseImg;
    }

    public Integer getBuildingId() {
        return buildingId;
    }

    public void setBuildingId(Integer buildingId) {
        this.buildingId = buildingId;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public Integer getStu() {
        return stu;
    }

    public void setStu(Integer stu) {
        this.stu = stu;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "HouseType{" +
        "id=" + id +
        ", houseName=" + houseName +
        ", houseDesc=" + houseDesc +
        ", area=" + area +
        ", price=" + price +
        ", houseImg=" + houseImg +
        ", buildingId=" + buildingId +
        ", parentId=" + parentId +
        ", stu=" + stu +
        ", userId=" + userId +
        ", createTime=" + createTime +
        "}";
    }
}
